package com.xiaominfo.oss.domain;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @Author lien
 * @Date 2019/12/24 16:39
 * @Description 文件详情对象
 **/
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class FileInfo {

    /**
     * url
     */
    private String url;

    /**
     * 名称
     */
    private String name;

    /**
     * 类型
     */
    private String type;

    /**
     * 最后修改时间
     */
    private String lastModifiedTime;

    /**
     * 大小
     */
    private String size;

    /***
     * 媒体类型
     */
    private String mediaType;


    public FileInfo(String url, String name, String lastModifiedTime, String size) {
        this.url = url;
        this.name = name;
        this.lastModifiedTime = lastModifiedTime;
        this.size = size;
    }

}
